//
//  MapAndLocation.h
//  定位demo
//
//  Created by lanou3g on 15/7/24.
//  Copyright (c) 2015年 何炜. All rights reserved.
//

#import <Foundation/Foundation.h>
//#import <MapKit/MapKit.h>
#import <CoreLocation/CoreLocation.h>

typedef void (^LocationCompletion)(BOOL finsh,NSString * city,id data);

@interface MapAndLocation : NSObject<CLLocationManagerDelegate>
+ (MapAndLocation *)shareLocation;
- (void)starLocationNow:(LocationCompletion)complent;

@property (nonatomic,copy)LocationCompletion complent;
@property (nonatomic,strong)NSMutableDictionary * dataDic;


@property (nonatomic,strong) CLLocationManager *mgr;//定位管理者
@property (nonatomic,strong) CLGeocoder *geocoder;
@property (nonatomic,strong) NSMutableDictionary *cities;
@property (nonatomic,strong) NSMutableArray *keys;
@property (nonatomic,strong) NSString *cityString;//城市编号
@property (nonatomic,strong) NSString *addressString;//定位的地址
@property (nonatomic,copy)   NSString *weather;
@property (nonatomic,copy)   NSString *temp1;
@property (nonatomic,copy)   NSString *temp2;
@property (nonatomic,copy)   NSString *ptime;
@property (nonatomic,copy)   NSString *locationAddress;
@property (nonatomic,copy)   NSString *latitude;//纬度
@property (nonatomic,copy)   NSString *longtitude;//经度
@property (nonatomic)        NSString *locationIsYes;
@end
